package userApi

import (
	"chart.zozoo.net/app/service/userService"
	"chart.zozoo.net/app/utils/rsp"
	"fmt"
	"github.com/gin-gonic/gin"
)

// Info 获取用户信息
func Info(c *gin.Context) {
	uuid := c.GetString("uuid")
	fmt.Println(uuid)
	info, err := userService.InfoByUuid(uuid)
	if err != nil {
		rsp.JsonErr(c, rsp.SetCode(400))
		return
	}

	rsp.JsonOk(c, rsp.SetData(info))
}
